﻿#pragma strict

public class menuMaquina
{
	public var matar : boolean = false;
	public var texturaMover : Texture2D = null;
	public var texturaUpgrade : Texture2D = null;
	public var texturaVender : Texture2D = null;
	
	public function menuMaquina()
	{
		GUI.Box (Rect(0,30,130,115),"Menu");
		GUI.Box(Rect(0,55,30,30),texturaMover);
		GUI.Box(Rect(0,85,30,30),texturaUpgrade);
		GUI.Box(Rect(0,115,30,30),texturaVender);
		GUI.Button(Rect(30,55,100,30),"Mover");
		GUI.Button(Rect(30,85,100,30),"Upgrade");
		if(GUI.Button(Rect(30,115,100,30),"Vender"))
		{
			GUIgeral.dinheiro+=100;
			GameObject.Destroy(Clique.object);
		}
	}
}